package com.zdp.redis;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author sesshomaru
 * @date 2020/1/13 0:11
 */
@Component
@ConfigurationProperties(prefix = "zdp.redis")
public class RedisProperties {
    private String host;
    private int port;

    public int getPort() {
        return port;
    }
    public void setPort(int port) {
        this.port = port;
    }
    public String getHost() {
        return host;
    }
    public void setHost(String host) {
        this.host = host;
    }

}
